home *** CD-ROM | disk | FTP | other *** search
- // ------------ control.cpp
-
- #include "control.h"
- #include "desktop.h"
-
- void Control::Keyboard(int key)
- {
- DFWindow *Wnd;
- switch (key) {
- case UP:
- Wnd = desktop.InFocus();
- do {
- PrevSiblingFocus();
- if (Wnd == desktop.InFocus())
- break;
- } while (desktop.InFocus()->WindowType() == MenubarWindow);
- break;
- case '\t':
- case DN:
- case ALT_F6:
- Wnd = desktop.InFocus();
- do {
- NextSiblingFocus();
- if (Wnd == desktop.InFocus())
- break;
- } while (desktop.InFocus()->WindowType() ==
- MenubarWindow);
- break;
- default:
- DFWindow::Keyboard(key);
- break;
- }
- }
-
-